package com.buddy.qreport.common.mybatis.entity;

import lombok.Data;

import java.util.Collections;
import java.util.List;

public class Page<T> {

    private int page = 1;

    private int size = 20;

    private long total;

    private List<T> rows = Collections.EMPTY_LIST;

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	public long getTotal() {
		return total;
	}

	public void setTotal(long total) {
		this.total = total;
	}

	public List<T> getRows() {
		return rows;
	}

	public void setRows(List<T> rows) {
		this.rows = rows;
	}
}
